<template>
  <div class="layui-layer layui-layer-dialog">
    <div class="layui-layer-title">
      <slot name="title"></slot>
    </div>
    <div class="layui-layer-content">
      <slot></slot>
    </div>
    <span class="layui-layer-setwin"><a class="layui-layer-ico layui-layer-close layui-layer-close1" href="javascript:;"></a></span>
    <div class="layui-layer-btn layui-layer-btn-">
      <a class="layui-layer-btn0" @click="handleOk">确定</a>
    </div>
    <span class="layui-layer-resize"></span>
  </div>
</template>

<script lang="ts">
import {defineComponent} from 'vue'

export default defineComponent({
  name: 'LayDialog',
  emits: ['handleOk'],
  setup(_, { emit }) {
    return {
      handleOk() {
        emit('handleOk')
      }
    }
  }
})
</script>

<style scoped lang="less">

</style>
